import org.apache.commons.math3.stat.StatUtils;

public class CalculateVariance {
    public static void main(String[] args) {
        double[] data = {0.0614, 0.0026, -0.0470, -0.0972, -0.0528, 0.0019, -0.0226, 0.0692, 0.0163, -0.0101, 0.0147, 0.0843, 0.0766, -0.0002, -0.0455, -0.0226, 0.0583, -0.0954};
        double variance = StatUtils.variance(data);
        System.out.println("Variance: " + variance);
    }
}
